home *** CD-ROM | disk | FTP | other *** search
/ APDL Other Worlds / APDL Other Worlds Collection.iso / SF3000 / Extras / SoundMod / ReadMe next >
Encoding:
Text File  |  2003-11-03  |  1.9 KB  |  36 lines

  1. Alternative sound module
  2. ------------------------
  3.  
  4.   This directory contains an alternative version of the sound player module
  5. used by 'Star Fighter 3000'. Although the version numbers are identical, the
  6. two modules can be distinguished by their differing help strings (e.g. enter
  7. '*Help SFX_Handler' at the command line). The following applies only to
  8. machines with SharedSound installed, and is necessarily technical.
  9.  
  10.   Volume scaling and mixing 8 channels of linear stereo sound is quite CPU
  11. intensive. The game's 16 bit sound handler may cause a significant increase
  12. in interrupt latency (the delay before other interrupts are serviced),
  13. especially on older non-StrongARM machines. If interrupts are left disabled
  14. for longer than 100µs then strange effects may occur such as the 'real time
  15. clock' slowing down!
  16.  
  17.   SharedSound provides a mechanism for alleviating this problem; CPU
  18. intensive clients can register themselves as a 'call back' handler. Such
  19. handlers are called with interrupts enabled, and hence may legitimately take
  20. much longer to execute than an 'immediate' handler.
  21.  
  22.   Unfortunately the call back buffer is only 8 times the size of the
  23. hardware DMA buffer, and call backs only occur when the OS is threaded out of
  24. (e.g. after an interrupt or a SWI). It is quite common for the sound system
  25. to run out of data during periods of prolonged OS activity (typically disc
  26. access). This causes audible break up of sound output.
  27.  
  28.   This alternative sound module uses a 'call back' rather than 'immediate'
  29. handler for SharedSound output. The difference will probably not be
  30. noticeable except during initialisation and when loading missions. Raw 16
  31. bit sound output is unaffected, and 8 bit µ-law sound is NOT supported.
  32.  
  33.   Either run the module before the game so that it is used in preference to
  34. the internal version, or else copy it inside the application directory as
  35. '!Star3000.Code.SFX_Handle'.
  36.